﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ZhiHeng.OneCard.WpfClient.ViewModel;

namespace ZhiHeng.OneCard.WpfClient.Forms
{
    /// <summary>
    /// Interaction logic for TicketAutoSale.xaml
    /// </summary>
    public partial class TicketAutoSale : UserControl
    {
        public TicketAutoSale()
        {
            InitializeComponent();
            //this.DataContext = new CardBackViewModel();
        }
        private void Grid_KeyDown(object sender, KeyEventArgs e)
        {
            var uie = e.OriginalSource as UIElement;
            if (e.Key == Key.Enter)
            {
                uie.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));
                e.Handled = true;
            }
        }
    }
}
